<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QQtEthenetManager Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_q_qt_ethenet_manager-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QQtEthenetManager Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_q_qt_ethenet_manager.html" title="The QQtEthenetManager class 原理： S1:系统启动，调用init_net.sh S2:系统运行，用户通过页面设置WiFi或者...">QQtEthenetManager</a> class 原理： S1:系统启动，调用init_net.sh S2:系统运行，用户通过页面设置WiFi或者有线的IP等，或者设置为自动获取。 保存IP到配置文件，启动时显示到用户页面上 保存IP等到init_net.sh，系统启动时，网络连接状态正常。 保存WiFi设置等到/etc/wpa_supplicant.conf S3:用户插拔网线，WiFi自动切换为有线。 S4:用户重启系统，进入S1.  
 <a href="class_q_qt_ethenet_manager.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qqtethenetmanager_8h_source.html">qqtethenetmanager.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QQtEthenetManager:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_qt_ethenet_manager.png" usemap="#QQtEthenetManager_map" alt=""/>
  <map id="QQtEthenetManager_map" name="QQtEthenetManager_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a9e32134b4fb3a3986d6e89ed2471ebd3"><td class="memItemLeft" align="right" valign="top"><a id="a9e32134b4fb3a3986d6e89ed2471ebd3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigScanning</b> ()</td></tr>
<tr class="separator:a9e32134b4fb3a3986d6e89ed2471ebd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdc4c4de399cea78bc0f3baae9314554"><td class="memItemLeft" align="right" valign="top"><a id="acdc4c4de399cea78bc0f3baae9314554"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigDisConnected</b> ()</td></tr>
<tr class="separator:acdc4c4de399cea78bc0f3baae9314554"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29f51ac158bc7dc360962b7fa05ecc7b"><td class="memItemLeft" align="right" valign="top"><a id="a29f51ac158bc7dc360962b7fa05ecc7b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigConnecting</b> ()</td></tr>
<tr class="separator:a29f51ac158bc7dc360962b7fa05ecc7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62eedfc563941f2326d99f7b702e4f82"><td class="memItemLeft" align="right" valign="top"><a id="a62eedfc563941f2326d99f7b702e4f82"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigConnected</b> ()</td></tr>
<tr class="separator:a62eedfc563941f2326d99f7b702e4f82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f7dc6cb625cf767602f96ca8e66ef70"><td class="memItemLeft" align="right" valign="top"><a id="a8f7dc6cb625cf767602f96ca8e66ef70"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigRefreshed</b> ()</td></tr>
<tr class="separator:a8f7dc6cb625cf767602f96ca8e66ef70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e36d6af1b87ef9fab2023e7e6c76b27"><td class="memItemLeft" align="right" valign="top"><a id="a6e36d6af1b87ef9fab2023e7e6c76b27"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigStatusChanged</b> (QString status)</td></tr>
<tr class="separator:a6e36d6af1b87ef9fab2023e7e6c76b27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ab61e173072fa7d9e1de386d5404956"><td class="memItemLeft" align="right" valign="top"><a id="a3ab61e173072fa7d9e1de386d5404956"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigLanConnected</b> ()</td></tr>
<tr class="separator:a3ab61e173072fa7d9e1de386d5404956"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a733c3bbc21d85d4bd284598466d7120c"><td class="memItemLeft" align="right" valign="top"><a id="a733c3bbc21d85d4bd284598466d7120c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigLanDisConnected</b> ()</td></tr>
<tr class="separator:a733c3bbc21d85d4bd284598466d7120c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa72eceec1be28fd06dc35efe4069964c"><td class="memItemLeft" align="right" valign="top"><a id="aa72eceec1be28fd06dc35efe4069964c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigNetworkClear</b> ()</td></tr>
<tr class="separator:aa72eceec1be28fd06dc35efe4069964c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9bb42c6d5bae1c8c7be72d2c2eeba4c"><td class="memItemLeft" align="right" valign="top"><a id="ae9bb42c6d5bae1c8c7be72d2c2eeba4c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sigNetworkNotClear</b> ()</td></tr>
<tr class="separator:ae9bb42c6d5bae1c8c7be72d2c2eeba4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5d51e8e01fe560328f6e22237071f7ec"><td class="memItemLeft" align="right" valign="top"><a id="a5d51e8e01fe560328f6e22237071f7ec"></a>
QList&lt; TWifi &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>wifiList</b> ()</td></tr>
<tr class="separator:a5d51e8e01fe560328f6e22237071f7ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae42b4efca1a95fe0fe628e54278061d9"><td class="memItemLeft" align="right" valign="top"><a id="ae42b4efca1a95fe0fe628e54278061d9"></a>
TWifi&#160;</td><td class="memItemRight" valign="bottom"><b>currentWifi</b> ()</td></tr>
<tr class="separator:ae42b4efca1a95fe0fe628e54278061d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa775846127e09ad4803353fc53c062d0"><td class="memItemLeft" align="right" valign="top"><a id="aa775846127e09ad4803353fc53c062d0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>setCurrentWifi</b> (QString bssid_mac, QString password=&quot;&quot;)</td></tr>
<tr class="separator:aa775846127e09ad4803353fc53c062d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4aaa9312432e6054076778061831153e"><td class="memItemLeft" align="right" valign="top"><a id="a4aaa9312432e6054076778061831153e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setRefresh</b> (bool ref=true)</td></tr>
<tr class="separator:a4aaa9312432e6054076778061831153e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ee154ddd357def5528da6afc985af49"><td class="memItemLeft" align="right" valign="top"><a id="a3ee154ddd357def5528da6afc985af49"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setDHCP</b> (bool bUse=false)</td></tr>
<tr class="separator:a3ee154ddd357def5528da6afc985af49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77386353b7ca81c554807ab034de7cc9"><td class="memItemLeft" align="right" valign="top"><a id="a77386353b7ca81c554807ab034de7cc9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setAddr</b> (QString ip, QString mask, QString gw, QString dns)</td></tr>
<tr class="separator:a77386353b7ca81c554807ab034de7cc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a546f3e1be8ce3ed6ab8971d929e20984"><td class="memItemLeft" align="right" valign="top"><a id="a546f3e1be8ce3ed6ab8971d929e20984"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>getAddr</b> (QString &amp;ip, QString &amp;mask, QString &amp;gw, QString &amp;dns)</td></tr>
<tr class="separator:a546f3e1be8ce3ed6ab8971d929e20984"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ec667d769fbf71e144066260c70041b"><td class="memItemLeft" align="right" valign="top"><a id="a7ec667d769fbf71e144066260c70041b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_ethenet_manager.html#a7ec667d769fbf71e144066260c70041b">ipconfig</a> ()</td></tr>
<tr class="memdesc:a7ec667d769fbf71e144066260c70041b"><td class="mdescLeft">&#160;</td><td class="mdescRight">configIPAddress wpa_suplicant.conf init_net.sh ipaddr.conf <br /></td></tr>
<tr class="separator:a7ec667d769fbf71e144066260c70041b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b0b507497b069b45ba18a661046b4f4"><td class="memItemLeft" align="right" valign="top"><a id="a9b0b507497b069b45ba18a661046b4f4"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>currentNetName</b> ()</td></tr>
<tr class="separator:a9b0b507497b069b45ba18a661046b4f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adeb6db94e1a394e6a07d97ce48a6edea"><td class="memItemLeft" align="right" valign="top"><a id="adeb6db94e1a394e6a07d97ce48a6edea"></a>
QTimer *&#160;</td><td class="memItemRight" valign="bottom"><b>workTimer</b> ()</td></tr>
<tr class="separator:adeb6db94e1a394e6a07d97ce48a6edea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a2bb5794eb2bd79751d7ed748735bed5f"><td class="memItemLeft" align="right" valign="top"><a id="a2bb5794eb2bd79751d7ed748735bed5f"></a>
static <a class="el" href="class_q_qt_ethenet_manager.html">QQtEthenetManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>Instance</b> (QObject *parent=0)</td></tr>
<tr class="separator:a2bb5794eb2bd79751d7ed748735bed5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_q_qt_ethenet_manager.html" title="The QQtEthenetManager class 原理： S1:系统启动，调用init_net.sh S2:系统运行，用户通过页面设置WiFi或者...">QQtEthenetManager</a> class 原理： S1:系统启动，调用init_net.sh S2:系统运行，用户通过页面设置WiFi或者有线的IP等，或者设置为自动获取。 保存IP到配置文件，启动时显示到用户页面上 保存IP等到init_net.sh，系统启动时，网络连接状态正常。 保存WiFi设置等到/etc/wpa_supplicant.conf S3:用户插拔网线，WiFi自动切换为有线。 S4:用户重启系统，进入S1. </p>
<p>使用说明： 调用QQtEthnetManager::Instance(parent)，并且连接相应的WiFi信号和用户的槽 通过wifiList()，显示给用户看WiFi列表。每5s自动更新一次。在槽当中调用并更新界面 通过setCurrentWiFi()更换用户连接的WiFi。用户点击更改输入密码了，就调这个保存。会自动配置WiFi和根据用户IP或者DHCP重来连接新WiFi。 </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/network/<a class="el" href="qqtethenetmanager_8h_source.html">qqtethenetmanager.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/network/qqtethenetmanager.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
